package cn.edu.ctbu.lddweb.service.lmpl;

import cn.edu.ctbu.lddweb.mapper.NoticeMapper;
import cn.edu.ctbu.lddweb.pojo.Notice;
import cn.edu.ctbu.lddweb.service.NoticeService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 教学通知实现层
 */
@Service
public class NoticeServicelmpl implements NoticeService {

    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public List<Notice> selectList(Notice notice) {
        return noticeMapper.selectList(notice);
    }

    @Override
    public Notice findID(@Param("id") int id) {
        return noticeMapper.findID(id);
    }

    @Override
    public int insertNotice(Notice notice) {
        return noticeMapper.insertNotice(notice);
    }

    @Override
    public int updateNotice(Notice notice) {
        return noticeMapper.updateNotice(notice);
    }

    @Override
    public int deleteNotice(String id) {
        return noticeMapper.deleteNotice(id);
    }
}
